import time
from selenium import webdriver
from selenium.webdriver.common.by import By


class Search:
    def __init__(self):
        self.driver = webdriver.Chrome()
        self.driver.get("https://www.baidu.com")
    def search(self):
        print(self.driver.find_element(By.CLASS_NAME, "aaaa"))

    def quit(self, seconds=3):
        time.sleep(seconds)
        self.driver.quit()


if __name__ == '__main__':
    IS = Search()
    IS.search()
    IS.quit()